/**
 * Created by Kingsely on 2016/6/12.
 */
{
	angular.module('mainModule')
		.controller('MainController', MainController);
	angular.module('mainModule')
		.run(['$ionicPlatform', '$ionicPopup','$rootScope','$location','$ionicHistory','$state',
			function ($ionicPlatform, $ionicPopup, $rootScope, $location,$ionicHistory,$state) {
        }]);
	MainController.$inject = [
    '$ionicHistory', '$rootScope','http.interfaces'];
	function MainController(  $ionicHistory, $rootScope,interfaces) {
		let collect = {
			active: Active,
			storeTabIndex: 0,
			tapSelect: tapSelect
		};
		collect.active();//进入控制器后调用一次
		this.collect = collect;//输出集合，提供给模板调用

		/** Active方法
		 * @desc 控制器触发时执行一次的方法
		 * @constructor
		 */
		function Active() {

		}


		function tapSelect() {
			$ionicHistory.clearHistory();
		}
	}
}